#!/bin/bash
cat /etc/passwd |cut -d: -f1,3 |tr : " " >user.txt
while read user uid
do
	if (( uid>=500 && uid <=60000 ));then
		echo "$user 是普通用户"
	elif (( uid==0 ));then
		echo "$user 是root用户"
	else 
		echo "$user 是系统用户"
	fi
done <user.txt
